Skip to content

Conversation

@oguzkocer
Copy link
Contributor

Summary

Adds support for the include parameter in the subscribers API to request additional fields such as country. Also fixes handling of country data when the API returns false instead of String for its fields.

Changes

  • Add include parameter to SubscribersListParams with support for country field
  • Make SubscriberCountry fields optional to handle API edge case where false is returned
  • Add integration test to verify country field inclusion works correctly

Breaking Changes

  • SubscriberCountry.code and SubscriberCountry.name are now Option<String> instead of String

- Add `include` parameter to request country field for subscribers
- Make `SubscriberCountry` fields optional to handle API returning false
- Add integration test for country field inclusion

BREAKING CHANGE: `SubscriberCountry` fields are now optional
@oguzkocer oguzkocer added this to the 0.2 milestone Jul 18, 2025
@oguzkocer oguzkocer marked this pull request as ready for review July 18, 2025 00:55
@oguzkocer oguzkocer enabled auto-merge (squash) July 18, 2025 00:55
@oguzkocer oguzkocer requested a review from crazytonyli July 18, 2025 00:55
@oguzkocer oguzkocer merged commit 8abd219 into trunk Jul 20, 2025
20 checks passed
@oguzkocer oguzkocer deleted the include-country-in-subscribers branch July 20, 2025 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants